﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GuessBall.Models
{
    public class Judgment
    {
        public Result judge(int index)
        {
            Result r = new Result();
            Random ra = new Random();
            int x = ra.Next(1, 4);
            r.correctIndex = x;
            if (x == index)
                r.isCorrect = true;
            else
                r.isCorrect = false;
            return r;
        }
    }
}